<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-09-29
 * Time: 13:48
 */

namespace backend\controllers;


use app\models\CrmMallOrder;
use app\models\CrmMallProduct;
use app\models\CrmMallProductSpecify;

class CrmOrderManagerController extends CommonController
{
    //查询 商品列表
    public function actionProductList(){//查询
        $res = $this->getList(new CrmMallProduct(),$_POST['page'],$_POST['limit'],['like','spmc',isset($_POST['spmc'])?$_POST['spmc']:""]);
        return $res;
    }
    //查询 订单列表
    public function actionOrderList(){//查询
        $res = $this->getList(new CrmMallOrder(),$_POST['page'],$_POST['limit']);
        return $res;
    }
    //查询 查询商品规格表
    public function actionProductSpgg(){//查询商品规格表
        $res = $this->getList(new CrmMallProductSpecify(),$_POST['page'],$_POST['limit'],['=','product_id',$_POST['product_id']]);
        return $res;
    }



}